package javabase.schoolwork.day5_26;

/**
 * @author fance
 * @date 2018/5/26 20:34
 */
public class Employee {
    private int id;
    private String name ;
    private double salary;
    private String workpalce;

    public Employee(int id) {
        this.id = id;
         name = "无名氏";
        salary = 0;
        workpalce = "未定";

    }

    public Employee(int id, String name) {
        this.id = id;
        this.name = name;
        salary = 1000;
        workpalce = "后勤";
    }

    public Employee(int id, String name, double salary, String workpalce) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.workpalce = workpalce;
    }

    public Employee() {
    }

    public String getInfo() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", workpalce='" + workpalce + '\'' +
                '}';
    }


}
